home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Container / Sources / Part.r < prev    next >
Encoding:
Text File  |  1996-12-16  |  5.3 KB  |  258 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.r
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #define SystemSevenOrBetter 1            // we want the extended types
  13. #define    SystemSevenOrLater    1            // Types.r uses this variable
  14.  
  15. #include "Types.r"
  16. #include "SysTypes.r"
  17. #include "CodeFragmentTypes.r"
  18.  
  19. #ifndef __ODTYPES_R__
  20. #include "ODTypes.r"
  21. #endif
  22.  
  23. #ifndef FWBLDDEF_H
  24. #include "FWBldDef.h"
  25. #endif
  26.  
  27. #ifndef BINDING_K
  28. #include "Binding.k"
  29. #endif
  30.  
  31. //-------------------------------------------------------------------------------------
  32. // cfrg Resource
  33. //-------------------------------------------------------------------------------------
  34.  
  35. resource 'cfrg' (0) {
  36.     {    /* array memberArray: 2 elements */
  37.         /* [1] */
  38. #ifdef FW_BUILD_MAC68K
  39.         kMotorola,
  40. #else
  41.         kPowerPC,
  42. #endif
  43.         kFullLib,
  44.         kNoVersionNum,
  45.         kNoVersionNum,
  46.         kDefaultStackSize,
  47.         kNoAppSubFolder,
  48.         kIsLib,
  49.         kOnDiskFlat,
  50.         kZeroOffset,
  51.         kWholeFork,
  52.         kODFContainerEditor,
  53.         /* [2] */
  54. #ifdef FW_BUILD_MAC68K
  55.         kMotorola,
  56. #else
  57.         kPowerPC,
  58. #endif
  59.         kFullLib,
  60.         kNoVersionNum,
  61.         kNoVersionNum,
  62.         kDefaultStackSize,
  63.         kNoAppSubFolder,
  64.         kIsLib,
  65.         kOnDiskFlat,
  66.         kZeroOffset,
  67.         kWholeFork,
  68.         "ODFContainer"
  69.     }
  70. };
  71.  
  72. //-------------------------------------------------------------------------------------
  73. // NMAP Resources
  74. //-------------------------------------------------------------------------------------
  75.  
  76. resource kODNameMappings (kKindCategoryMapID) {
  77.     kODKind,
  78.     {    /* array Types: 1 elements */
  79.         /* [1] */
  80.         kODFContainerKind,
  81.         kODIsAnISOStringList
  82.         {
  83.             {    /* array ClassIDs: 1 elements */
  84.                 /* [1] */
  85.                 kODCategoryPageLayout
  86.             }
  87.         }
  88.     }
  89. };
  90.  
  91. resource kODNameMappings (kEditorKindMapID) {
  92.     kODEditorKinds,
  93.     {    /* array Types: 1 elements */
  94.         /* [1] */
  95.         kODFContainerEditor,
  96.         kODIsAnISOStringList
  97.         {
  98.             {    /* array ClassIDs: 1 elements */
  99.                 /* [1] */
  100.                 kODFContainerKind
  101.             }
  102.         }
  103.     }
  104. };
  105.  
  106. resource kODNameMappings (kEditorUserStringMapID) {
  107.     kODEditorUserString,
  108.     {    /* array Types: 1 elements */
  109.         /* [1] */
  110.         kODFContainerEditor,
  111.         kODIsINTLText
  112.         {
  113.             smRoman,
  114.             langEnglish,
  115.             kODFContainerEditorUserString
  116.         }
  117.     }
  118. };
  119.  
  120. resource kODNameMappings (kKindUserStringMapID) {
  121.     kODKindUserString,
  122.     {    /* array Types: 1 elements */
  123.         /* [1] */
  124.         kODFContainerKind,
  125.         kODIsINTLText
  126.         {
  127.             smRoman,
  128.             langEnglish,
  129.             kODFContainerKindUserString
  130.         }
  131.     }
  132. };
  133.  
  134. resource kODNameMappings (kOldMacOSTypeMapID) {
  135.     kODKindOldMacOSType,
  136.     {    /* array KeyList: 1 elements */
  137.         /* [1] */
  138.         kODFContainerKind,
  139.         kODIsMacOSType {
  140.             kODFContainerDocumentOSType
  141.         }
  142.     }
  143. };
  144.  
  145. //-------------------------------------------------------------------------------------
  146. // Icons, BNDL and FREF Resources
  147. //-------------------------------------------------------------------------------------
  148.  
  149. include "MacIcons.rsrc" not 'ckid';
  150.  
  151. resource 'FREF' (128) {
  152.     'shlb',
  153.     0,
  154.     ""
  155. };
  156.  
  157. resource 'FREF' (129) {
  158.     kODFContainerDocumentOSType,
  159.     0,
  160.     ""
  161. };
  162.  
  163. resource 'FREF' (130) {
  164.     kODFContainerStationeryOSType,
  165.     1,
  166.     ""
  167. };
  168.  
  169. resource 'BNDL' (128) {
  170.     kODFContainerPartEditorOSType,
  171.     0,
  172.     {    /* array TypeArray: 2 elements */
  173.         /* [1] */
  174.         'FREF',
  175.         {    /* array IDArray: 1 elements */
  176.             /* [1] */
  177.             0, 128
  178.         },
  179.         /* [2] */
  180.         'ICN#',
  181.         {    /* array IDArray: 1 elements */
  182.             /* [1] */
  183.             0, 130
  184.         }
  185.     }
  186. };
  187.  
  188. resource 'BNDL' (129) {
  189.     kODShellSignature,
  190.     0,
  191.     {    /* array TypeArray: 2 elements */
  192.         /* [1] */
  193.         'FREF',
  194.         {    /* array IDArray: 2 elements */
  195.             /* [1] */
  196.             0, 129,
  197.             /* [2] */
  198.             1, 130
  199.         },
  200.         /* [2] */
  201.         'ICN#',
  202.         {    /* array IDArray: 2 elements */
  203.             /* [1] */
  204.             0, 128,
  205.             /* [2] */
  206.             1, 129
  207.         }
  208.     }
  209. };
  210.  
  211. data kODFContainerPartEditorOSType (0, "Owner resource") {
  212.     $"00"                                                 /* . */
  213. };
  214.  
  215. data kODShellSignature (0, "Owner resource") {
  216.     $"00"                                                 /* . */
  217. };
  218.  
  219. //-------------------------------------------------------------------------------------
  220. // kind Resources
  221. //-------------------------------------------------------------------------------------
  222. // Kind resources affect the text Finder displays in the
  223. // "kind" column and file info dialog. This feature was
  224. // introduced as part of Macintosh Easy Open.
  225. //
  226. resource 'kind' (1000) {
  227.     kODFContainerPartEditorOSType,
  228.     0, /* region = USA */
  229.     {
  230.         'shlb', "OpenDoc™ editor"
  231.     }
  232. };
  233.         
  234. resource 'kind' (1001) {
  235.     kODShellSignature,
  236.     0, /* region = USA */
  237.     {
  238.         kODFContainerDocumentOSType, kODFContainerEditorUserString" document",
  239.         kODFContainerStationeryOSType, kODFContainerEditorUserString" stationery"
  240.     }
  241. };
  242.  
  243. //-------------------------------------------------------------------------------------
  244. // STR resources
  245. //-------------------------------------------------------------------------------------
  246. // The -16397 string will be displayed by Finder when a user
  247. // tries to open the editor shared library. The string should
  248. // give the user a little detail about the part's capabilities
  249. // and enough information to install the part in the correct location.
  250. //
  251. resource 'STR ' (-16397, purgeable) {
  252.     "OpenDoc™ editor\n\nTo work properly, the “ODFContainer” shared library"
  253.     " should be placed in the Editors folder.  To create a new document, "
  254.     "open a stationery pad."
  255. };
  256.  
  257.  
  258.